package com.kevin.swing;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextArea;
import javax.swing.table.DefaultTableModel;

import com.kevin.MainFrame;

public abstract class ContentJPanel extends JPanel {

    private static final long serialVersionUID = 4865803795120029379L;

    protected MainFrame owner;

    protected JTextArea logTA; // 日志输出
    protected JScrollPane jsplogTA;
    // 内容表格
    protected int index = 0;
    protected JTable showTable;
    protected JScrollPane showtableJSpane;
    protected DefaultTableModel showTableModel;

    public ContentJPanel(MainFrame owner) {
        super();
        this.owner = owner;
    }

    public void showlog(String log) {
        logTA.setText(log);
    }

    protected abstract void init();

    protected abstract void setPanel();

}
